home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
MODULA_2
/
2394.ZIP
/
M2TOOLS1.ZIP
/
INOUT2.DEF
< prev
next >
Wrap
Text File
|
1990-03-01
|
1KB
|
57 lines
DEFINITION MODULE InOut2;
CONST
F1 = 59;
F2 = 60;
F3 = 61;
F4 = 62;
F5 = 63;
F6 = 64;
F7 = 65;
F8 = 66;
F9 = 67;
F10 = 68;
RtTab = 9;
LtTab = 15;
LtArrow = 75;
RtArrow = 77;
UpArrow = 72;
DnArrow = 80;
Home = 71;
End = 79;
PgUp = 73;
PgDn = 81;
CtrlLtArrow = 115;
CtrlRtArrow = 116;
CtrlHome = 119;
CtrlEnd = 117;
CtrlPgUp = 132;
CtrlPgDn = 118;
ESC = 27;
Ins = 82;
Del = 83;
BkSpace = 8;
Return = 13;
PROCEDURE GetKey (VAR Ch : CARDINAL;
VAR NormChar : BOOLEAN);
(* This procedure will read a key. If it is not a normal key, ie F1 then
NormChar will be FALSE and the scan code returned in Ch.
Normal ASCII characters will have NormChar = TRUE and the ASCII code
returned in Ch *)
PROCEDURE GetReply (CharRange : ARRAY OF CHAR) : CHAR;
(* Enter the range, e.g. "YN". If the character entered matches any
of the CharRange then it is returned. Only a correct ranged reply
will allow exit of this procedure.
Please note if <RETURN> is pressed then the last character of the
CharRange is taken as the default reply *)
END InOut2.